HW1

Task 1 – Curse of dimensionality and effect of sample size

a) Calculating the fractions and plotting fractions as a function of D

b) Estimatation for the value of pi (Π)

c) Visualizing the estimated Π for 2 and 3 dimension with large samples

d) Plotting the average distance from the test instances to their nearest neighbors as a function of D

Task 2 – Practicing data manipulation skills on images

a) Reading image

b) Displaying Channels

c) Plot for average of the columns

c) Dividing image and each channel into two

d) Creating noise image and display its channels